﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using MessagePack;
     
[MessagePackObject]
public class ItemData
{
    [Key(0)] //每一个属性都要有一个Key,从0到n(必须)
    public List<string> Name = new List<string>(); //名字
    [Key(1)]
    public List<int> Layer = new List<int>();  //层级

    #region  transform  //这下面是物体的Transform信息
    [Key(2)]
    public List<float> position_x = new List<float>();
    [Key(3)]
    public List<float> position_y = new List<float>();
    [Key(4)]
    public List<float> position_z = new List<float>();
    [Key(5)]
    public List<float> rotation_x = new List<float>();
    [Key(6)]
    public List<float> rotation_y = new List<float>();
    [Key(7)]
    public List<float> rotation_z = new List<float>();
    [Key(8)]
    public List<float> scale_x = new List<float>();
    [Key(9)]
    public List<float> scale_y = new List<float>();
    [Key(10)]
    public List<float> scale_z = new List<float>();
    #endregion
}
